namespace ext.form
{
	using System;
	using System.Runtime.CompilerServices;
	using System.Html;
	using System.Collections;
	
	
	/// <summary>
	/// A class which handles submission of data from {@link Ext.form.BasicForm Form}s
	/// and processes the returned response.  Instances of this class are only created by a {@link Ext.form.BasicForm Form} when
	/// {@link Ext.form.BasicForm#submit submit}ting.  Response Packet Criteria  A response packet may contain:
	///   success property : Boolean
	/// The success property is required.   errors property : Object
	///  The errors property,
	/// which is optional, contains error messages for invalid fields.      JSON Packets  By default, response packets are assumed to be JSON, so a typical response
	/// packet may look like this:  
	/// {
	/// success: false,
	/// errors: {
	/// clientCode: &quot;Client not found&quot;,
	/// portOfLoading: &quot;This field must not be null&quot;
	/// }
	/// }  Other data may be placed into the response for processing by the {@link Ext.form.BasicForm}&apos;s callback
	/// or event handler methods. The object decoded from this JSON is available in the
	/// {@link Ext.form.Action#result result} property.  Alternatively, if an {@link...
	/// </summary>
	/// <htmlSummary>
	/// &lt;p&gt;A class which handles submission of data from {@link Ext.form.BasicForm Form}s
	/// and processes the returned response.&lt;/p&gt;
	/// &lt;p&gt;Instances of this class are only created by a {@link Ext.form.BasicForm Form} when
	/// {@link Ext.form.BasicForm#submit submit}ting.&lt;/p&gt;
	/// &lt;p&gt;&lt;u&gt;&lt;b&gt;Response Packet Criteria&lt;/b&gt;&lt;/u&gt;&lt;/p&gt;
	/// &lt;p&gt;A response packet may contain:
	/// &lt;div class=&quot;mdetail-params&quot;&gt;&lt;ul&gt;
	/// &lt;li&gt;&lt;b&gt;&lt;code&gt;success&lt;/code&gt;&lt;/b&gt; property : Boolean
	/// &lt;div class=&quot;sub-desc&quot;&gt;The &lt;code&gt;success&lt;/code&gt; property is required.&lt;/div&gt;&lt;/li&gt;
	/// &lt;li&gt;&lt;b&gt;&lt;code&gt;errors&lt;/code&gt;&lt;/b&gt; property : Object
	/// &lt;div class=&quot;sub-desc&quot;&gt;&lt;div class=&quot;sub-desc&quot;&gt;The &lt;code&gt;errors&lt;/code&gt; property,
	/// which is optional, contains error messages for invalid fields.&lt;/div&gt;&lt;/li&gt;
	/// &lt;/ul&gt;&lt;/div&gt;
	/// &lt;p&gt;&lt;u&gt;&lt;b&gt;JSON Packets&lt;/b&gt;&lt;/u&gt;&lt;/p&gt;
	/// &lt;p&gt;By default, response packets are assumed to be JSON, so a typical response
	/// packet may look like this:&lt;/p&gt;&lt;pre&gt;&lt;code&gt;
	/// {
	/// success: false,
	/// errors: {
	/// clientCode: &quot;Client not found&quot;,
	/// portOfLoading: &quot;This field must not be null&quot;
	/// }
	/// }&lt;/code&gt;&lt;/pre&gt;
	/// &lt;p&gt;Other data may be placed into the response for processing by the {@link Ext.form.BasicForm}&apos;s callback
	/// or event handler methods. The object decoded from this JSON is available in the
	/// {@link Ext.form.Action#result result} property.&lt;/p&gt;
	/// &lt;p&gt;Alternatively, if an {@link #errorReader} is specified as an {@link Ext.data.XmlReader XmlReader}:&lt;/p&gt;&lt;pre&gt;&lt;code&gt;
	/// errorReader: new Ext.data.XmlReader({
	/// record : &apos;field&apos;,
	/// success: &apos;@success&apos;
	/// }, [
	/// &apos;id&apos;, &apos;msg&apos;
	/// ]
	/// )
	/// &lt;/code&gt;&lt;/pre&gt;
	/// &lt;p&gt;then the results may be sent back in XML format:&lt;/p&gt;&lt;pre&gt;&lt;code&gt;
	/// &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;
	/// &amp;lt;message success=&quot;false&quot;&amp;gt;
	/// &amp;lt;errors&amp;gt;
	/// &amp;lt;field&amp;gt;
	/// &amp;lt;id&amp;gt;clientCode&amp;lt;/id&amp;gt;
	/// &amp;lt;msg&amp;gt;&amp;lt;![CDATA[Code not found. &amp;lt;br /&amp;gt;&amp;lt;i&amp;gt;This is a test validation message from the server &amp;lt;/i&amp;gt;]]&amp;gt;&amp;lt;/msg&amp;gt;
	/// &amp;lt;/field&amp;gt;
	/// &amp;lt;field&amp;gt;
	/// &amp;lt;id&amp;gt;portOfLoading&amp;lt;/id&amp;gt;
	/// &amp;lt;msg&amp;gt;&amp;lt;![CDATA[Port not found. &amp;lt;br /&amp;gt;&amp;lt;i&amp;gt;This is a test validation message from the server &amp;lt;/i&amp;gt;]]&amp;gt;&amp;lt;/msg&amp;gt;
	/// &amp;lt;/field&amp;gt;
	/// &amp;lt;/errors&amp;gt;
	/// &amp;lt;/message&amp;gt;
	/// &lt;/code&gt;&lt;/pre&gt;
	/// &lt;p&gt;Other elements may be placed into the response XML for processing by the {@link Ext.form.BasicForm}&apos;s callback
	/// or event handler methods. The XML document is available in the {@link #errorReader}&apos;s {@link Ext.data.XmlReader#xmlData xmlData} property.&lt;/p&gt;
	/// </htmlSummary>
	/// <definedin>src\widgets\form\Action.js</definedin>
	[ScriptName("Action.Submit")]
	[ScriptNamespace("Ext.form")]
	[Imported()]
	public partial class Action_Submit : ext.form.Action
	{
		
		#region Constructors
		public Action_Submit(ext.form.Action_Submit_Configuration config)
		{
		}
		
		/// <summary>Constructor</summary>
		public Action_Submit()
		{
		}
		#endregion
		
		#region Fields
		/// <summary>
		/// Optional. JSON is interpreted with
		/// no need for an errorReader.  A Reader which reads a single record from the returned data. The DataReader&apos;s
		/// success property specifies how submission success is determined. The Record&apos;s
		/// data provides the error messages to apply to any invalid form Fields.
		/// </summary>
		/// <htmlSummary>
		/// &lt;p&gt;&lt;b&gt;Optional. JSON is interpreted with
		/// no need for an errorReader.&lt;/b&gt;&lt;/p&gt;
		/// &lt;p&gt;A Reader which reads a single record from the returned data. The DataReader&apos;s
		/// &lt;b&gt;success&lt;/b&gt; property specifies how submission success is determined. The Record&apos;s
		/// data provides the error messages to apply to any invalid form Fields.&lt;/p&gt;
		/// </htmlSummary>
		/// <definedin>src\widgets\form\Action.js</definedin>
		[ScriptName("errorReader")]
		public ext.data.DataReader ErrorReader;
		
		/// <summary>
		/// Determines whether a Form&apos;s fields are validated
		/// in a final call to {@link Ext.form.BasicForm#isValid isValid} prior to submission.
		/// Pass false in the Form&apos;s submit options to prevent this. If not defined, pre-submission field validation
		/// is performed.
		/// </summary>
		/// <htmlSummary>
		/// Determines whether a Form&apos;s fields are validated
		/// in a final call to {@link Ext.form.BasicForm#isValid isValid} prior to submission.
		/// Pass &lt;tt&gt;false&lt;/tt&gt; in the Form&apos;s submit options to prevent this. If not defined, pre-submission field validation
		/// is performed.
		/// </htmlSummary>
		/// <definedin>src\widgets\form\Action.js</definedin>
		[ScriptName("clientValidation")]
		public bool ClientValidation;
		#endregion
	}
}
